#include <iostream>
using namespace std;

int recursively(int base)
{
    int r;
    if (base == 0) return 1;
    if (base == 1){
        r = 1;
    }
    else{
        r = base * recursively(base - 1);
    }
    return r;
}
int main(){
    int n;
    cin>>n;
    cout<<"recursively("<<n<<")="<<recursively(n)<<endl;
    return 0;
}
